package frame

import (
)
import (
	"net/http"
	"fmt"
	"html/template"
)

type Control struct {
	W http.ResponseWriter
}

func (c *Control) Render(file string)  {
	t, err := template.ParseFiles("mydoc/temlate/"+file)
	if err != nil {
		fmt.Println(err)
	}
	err2 := t.Execute(c.W, map[string]string{"Title": "haha ", "Body": "Hi this is my body"})
	if err2 != nil {
		fmt.Println(err2)
	}

}